﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommonAdmin.Dto
{
	[SugarTable("Log")]
	public class LogDto
	{
		/// <summary>
		/// 主键
		/// </summary>
		[SugarColumn(IsPrimaryKey = true)]
		public string Id { get; set; }= Guid.NewGuid().ToString("N");
		/// <summary>
		/// 用户Id
		/// </summary>
		public string UserId { get; set; }
		/// <summary>
		/// 日志内容
		/// </summary>
		public string Content { get; set; }
		/// <summary>
		/// 数据内容
		/// </summary>
		public string OldData { get; set; }
		public string NewData { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; } = DateTime.Now;
	}
}
